'''
Created on Jul 20, 2012

@author: LENOVO
'''
#TODO: upload the entire project to git
#TODO: use a logging framework to log every thing
#TODO: use Pylint to stylistically check it
from decrypt import NumberExtractor
from decrypt import Decryptor
from Searching import QuestionSearch

if __name__ == '__main__':
    print('Testing number converter')
    number = NumberExtractor.NumberExtractor()
    print('Testing the decryptor')
    dec = Decryptor.Decryptor()
    text = dec.getPlainText('James Baldwin','Qhtlz Ihskdpu','mpcl aovbzhuk, aoyll obukylk huk upulaf-adv')
    print(text)
    print(number.getNumber(text))
    print('Testing the Search')
    search = QuestionSearch.Search()
    search.question('Who is the author of the book The Bird Artist?')
    search.question("who is the author of the book John Ward, Preacher?")
    search.question("What is the capitol of new Zealand?")